package net.lahuobao.util;

import java.util.LinkedHashMap;

/**
 * Created by Administrator on 2016/11/11.
 */
public class Contants {
    public static final LinkedHashMap<String, String> SERVICE_PROVIDER_EXPORT = new LinkedHashMap();
    public static final LinkedHashMap<String, String> INCOME_ZANGU_EXPORT = new LinkedHashMap();
    public static final LinkedHashMap<String, String> COST_ZANGU_EXPORT = new LinkedHashMap();
    public static final LinkedHashMap<String, String> BATCH_UPLOAD_TEMPLATE = new LinkedHashMap();
    static {
        SERVICE_PROVIDER_EXPORT.put("client_name",              "货主名称");
        SERVICE_PROVIDER_EXPORT.put("waybill_number",           "运单号");
        SERVICE_PROVIDER_EXPORT.put("state",                    "运单状态");
        SERVICE_PROVIDER_EXPORT.put("sign_time",                "签收日期");
        SERVICE_PROVIDER_EXPORT.put("delivery_time",            "运输完成时间");
        SERVICE_PROVIDER_EXPORT.put("deal_time",                "成交时间");
        SERVICE_PROVIDER_EXPORT.put("cargo_from_name",          "发货地");
        SERVICE_PROVIDER_EXPORT.put("cargo_to_name",            "收货地");
        SERVICE_PROVIDER_EXPORT.put("cargo_name",               "货品名称");
        SERVICE_PROVIDER_EXPORT.put("real_weight",              "重量(吨)");
        SERVICE_PROVIDER_EXPORT.put("rec_number",               "对账单编号");
        SERVICE_PROVIDER_EXPORT.put("policy_fee",               "保险费");
        SERVICE_PROVIDER_EXPORT.put("price",                    "成交车价");
        SERVICE_PROVIDER_EXPORT.put("amount",                   "结算车价");
        SERVICE_PROVIDER_EXPORT.put("revenue_rate",             "收入费率");
        SERVICE_PROVIDER_EXPORT.put("invoice_revenue",          "含税收入");
        SERVICE_PROVIDER_EXPORT.put("organization_name",        "承运商");
        SERVICE_PROVIDER_EXPORT.put("income_invoice_status",    "收入发票开具状态");
        SERVICE_PROVIDER_EXPORT.put("income_invoice_number",    "收入发票号");
        SERVICE_PROVIDER_EXPORT.put("income_invoice_date",      "收入开票日期");
        SERVICE_PROVIDER_EXPORT.put("cost_rate",                "成本费率");
        SERVICE_PROVIDER_EXPORT.put("invoice_cost",             "含税成本");
        SERVICE_PROVIDER_EXPORT.put("cost_invoice_status",      "成本发票开具状态");
        SERVICE_PROVIDER_EXPORT.put("cost_invoice_number",      "成本发票号");
        SERVICE_PROVIDER_EXPORT.put("cost_invoice_date",        "成本开票日期");
        SERVICE_PROVIDER_EXPORT.put("income_zangu_month",       "收入暂估月份");
        SERVICE_PROVIDER_EXPORT.put("cost_zangu_month",         "成本暂估月份");
        SERVICE_PROVIDER_EXPORT.put("receipt_sign",             "回单标记");



        INCOME_ZANGU_EXPORT.put("client_name",              "货主名称");
        INCOME_ZANGU_EXPORT.put("waybill_number",           "运单号");
        INCOME_ZANGU_EXPORT.put("state",                    "运单状态");
        INCOME_ZANGU_EXPORT.put("sign_time",                "签收日期");
        INCOME_ZANGU_EXPORT.put("deal_time",                "成交时间");
        INCOME_ZANGU_EXPORT.put("cargo_from_name",          "发货地");
        INCOME_ZANGU_EXPORT.put("cargo_to_name",            "收货地");
        INCOME_ZANGU_EXPORT.put("cargo_name",               "货品名称");
        INCOME_ZANGU_EXPORT.put("real_weight",              "重量(吨)");
        INCOME_ZANGU_EXPORT.put("policy_fee",               "保险费");
        INCOME_ZANGU_EXPORT.put("amount",                   "结算车价");
        INCOME_ZANGU_EXPORT.put("pre_cost",                 "含税收入");
        INCOME_ZANGU_EXPORT.put("income_invoice_status",    "收入发票开具状态");
        INCOME_ZANGU_EXPORT.put("pre_cost",                 "暂估成本");
        INCOME_ZANGU_EXPORT.put("pre_cost_rate",            "暂估费率");
        INCOME_ZANGU_EXPORT.put("income_zangu_month",       "收入暂估月份");
        INCOME_ZANGU_EXPORT.put("pre_cost_status",          "收入暂估状态");
        INCOME_ZANGU_EXPORT.put("pre_cost_number",          "暂估单号");



        COST_ZANGU_EXPORT.put("client_name",              "货主名称");
        COST_ZANGU_EXPORT.put("waybill_number",           "运单号");
        COST_ZANGU_EXPORT.put("state",                    "运单状态");
        COST_ZANGU_EXPORT.put("sign_time",                "签收日期");
        COST_ZANGU_EXPORT.put("deal_time",                "成交时间");
        COST_ZANGU_EXPORT.put("cargo_from_name",          "发货地");
        COST_ZANGU_EXPORT.put("cargo_to_name",            "收货地");
        COST_ZANGU_EXPORT.put("cargo_name",               "货品名称");
        COST_ZANGU_EXPORT.put("real_weight",              "重量(吨)");
        COST_ZANGU_EXPORT.put("policy_fee",               "保险费");
        COST_ZANGU_EXPORT.put("amount",                   "结算车价");
        COST_ZANGU_EXPORT.put("invoice_cost",             "含税成本");
        COST_ZANGU_EXPORT.put("cost_invoice_status",      "成本发票开具状态");
        COST_ZANGU_EXPORT.put("pre_cost",                 "暂估成本");
        COST_ZANGU_EXPORT.put("pre_cost_rate",            "暂估费率");
        COST_ZANGU_EXPORT.put("cost_zangu_month",         "成本暂估月份");
        COST_ZANGU_EXPORT.put("pre_cost_status",          "成本暂估状态");
        COST_ZANGU_EXPORT.put("pre_cost_number",          "暂估单号");

        BATCH_UPLOAD_TEMPLATE.put("buildOrderType","制单类型（必输）");
        BATCH_UPLOAD_TEMPLATE.put("certificate","企业自制凭证号");
        BATCH_UPLOAD_TEMPLATE.put("clientNO","客户号（必输）");
        BATCH_UPLOAD_TEMPLATE.put("yuyue","预约标志（默认填0）");
        BATCH_UPLOAD_TEMPLATE.put("payAccountNO","付款账号（必输）");
        BATCH_UPLOAD_TEMPLATE.put("amount","交易金额（必输）");
        BATCH_UPLOAD_TEMPLATE.put("bankCardNo","收款账号（必输）");
        BATCH_UPLOAD_TEMPLATE.put("bankAccountName","收款人姓名（必输）");
        BATCH_UPLOAD_TEMPLATE.put("bankAccountType","收款账户类型（必输）");
        BATCH_UPLOAD_TEMPLATE.put("subClientNO","子客户号");
        BATCH_UPLOAD_TEMPLATE.put("subPayAccountNO","子付款账号");
        BATCH_UPLOAD_TEMPLATE.put("subPayAccountName","子付款账户名");
        BATCH_UPLOAD_TEMPLATE.put("subBankAccountName","子付款账户开户行名");
        BATCH_UPLOAD_TEMPLATE.put("account_record_id","用途");
        BATCH_UPLOAD_TEMPLATE.put("huilu","汇路");
        BATCH_UPLOAD_TEMPLATE.put("isNotify","是否通知收款人");
        BATCH_UPLOAD_TEMPLATE.put("mobile","手机号码");
        BATCH_UPLOAD_TEMPLATE.put("email","邮箱");
        BATCH_UPLOAD_TEMPLATE.put("bankNO","支付行号&支付行名称");
        BATCH_UPLOAD_TEMPLATE.put("bankAddress","开户行地址");
        BATCH_UPLOAD_TEMPLATE.put("bankName","银行名称");
        BATCH_UPLOAD_TEMPLATE.put("operate_time","发起时间");
    }


    public static String invoiceStateToLabel(char code) {
        switch (code) {
            case '0': return "未开票";
            case '1': return "开票中";
            case '2': return "对账中";
            case '3': return "已开票";
            default: return "";
        }
    }

    public static String hdStateToLabel(char code) {
        switch (code) {
            case '0': return "未回单";
            case '1': return "已回单";
            default: return "未回单";
        }
    }
}
